#include "InputMgr.h"

InputMgr *InputMgr::g_instance = NULL;

InputMgr::InputMgr()
{
	for(int i = 0; i < KEY_COUNT; ++i)
	{
		m_keys[i] = false;
	}
}

void InputMgr::SetKeyState(KEY key, bool state)
{
	m_keys[key] = state;
}

void InputMgr::SetMouseMovement(float x, float y)
{
	m_mouseX = x;
	m_mouseY = y;
}

void InputMgr::ClearMouseMovement()
{
	m_mouseX = 0.f;
	m_mouseY = 0.f;
	m_mouseDown = false;
}